package com.ordertracker.protocol;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

/**
 * Description of class.
 * Created 1/10/13 12:49 PM
 *
 * @author andrey.rodin@playtech.com
 */

@XmlRootElement
public class CommandMessage implements Serializable{

    private static final long serialVersionUID = -9017786121644819771L;
    private String obj;
    private String type;

    public CommandMessage() {
    }

    public CommandMessage(String obj, Class type) {
        this.obj = obj;
        this.type = type.getName();
    }

    @XmlElement(nillable = false)
    public String getObj() {
        return  obj;
    }

    @XmlElement(nillable = false)
    public String getType() {
        return type;
    }
}
